<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "giaoban";
$route['lichlamviec/sua_lich'] = "lichlamviec/sua_lich";
$route['lichlamviec/exportExcel/(:any)'] = "lichlamviec/exportToExcel/$1";
$route['lichlamviec/them_lich'] = "lichlamviec/them_lich";
$route['lichlamviec/(:any)'] = "lichlamviec/index/$1";

$route['user/add'] = "user/addUser";
$route['user/edit/(:num)'] = "user/editUser/$1";
$route['user/del/(:num)'] = "user/delUser/$1";
$route['user/changePass'] = "user/changePass";
$route['danhba'] = "user/index/danhbas";
$route['user/(:any)'] = "user/index/$1";
$route['user/(:any)/(:num)'] = "user/index/$1/$2";


$route['tintuc/(:any)'] = "tintuc/index/$1";
$route['tintuc/(:any)/(:num)'] = "tintuc/index/$1/$2";
$route['tintuc/del/(:num)'] = "tintuc/delTintuc/$1";
$route['tintuc/add'] = "giaoban/addTintuc";
$route['tintuc/edit/(:num)'] = "giaoban/editTintuc/$1";

$route['tailieu/add'] = "tailieu/addTailieu";
$route['tailieu/edit/(:num)'] = "tailieu/editTailieu/$1";
$route['tailieu/del/(:num)'] = "tailieu/delTailieu/$1";
$route['tailieu/download/(:num)'] = "tailieu/download/$1";
$route['tailieu/(:any)'] = "tailieu/index/$1";
$route['tailieu/(:any)/(:num)'] = "tailieu/index/$1/$2";

$route['sodotochuc'] = "giaoban/index/sodotochuc";
$route['giaoban/add/(:num)'] = "giaoban/addGiaoban/$1";
$route['giaoban/edit/(:num)/(:num)'] = "giaoban/editGiaoban/$1/$2";
$route['giaoban/del/(:num)/(:num)'] = "giaoban/delGiaoban/$1/$2";
$route['giaoban/edit/(:num)/(:num)'] = "giaoban/editGiaoban/$1/$2";
$route['giaoban/download/(:num)'] = "giaoban/download/$1";
$route['giaoban/(:any)'] = "giaoban/index/$1";
$route['giaoban/(:any)/(:num)'] = "giaoban/index/$1/$2";
$route['giaoban/(:any)/(:num)/(:num)'] = "giaoban/index/$1/$2/$3";

$route['log'] = "counting_action_log/index/log";
$route['showLogDataTable'] = "counting_action_log/showLogDataTable";

$route['danhsachmenu/(:any)'] = "danhsachmenu/index/$1";
$route['danhsachmenu/(:any)/(:num)'] = "danhsachmenu/index/$1/$2";
$route['danhsachmenutin/add'] = "danhsachmenu/addMenuTin";
$route['danhsachmenutin/edit/(:num)'] = "danhsachmenu/editMenuTin/$1";
$route['danhsachmenutin/del/(:num)'] = "danhsachmenu/delMenuTin/$1";
$route['danhsachmenutin/trangchu/(:num)'] = "danhsachmenu/trangchu/$1";
$route['danhsachlich/add'] = "danhsachmenu/addLich";
$route['danhsachlich/edit/(:num)'] = "danhsachmenu/editLich/$1";
$route['danhsachlich/del/(:num)'] = "danhsachmenu/delLich/$1";
$route['danhsachtailieu/add'] = "danhsachmenu/addTailieu";
$route['danhsachtailieu/edit/(:num)'] = "danhsachmenu/editTailieu/$1";
$route['danhsachtailieu/del/(:num)'] = "danhsachmenu/delTailieu/$1";

$route['quyen'] = "quyen/index/quyen";
$route['quyen/loadajax'] = "quyen/loadajax";
$route['quyen/loadajax/(:num)'] = "quyen/loadajax/$1";
$route['quyen/add'] = "quyen/addQuyen";
$route['quyen/edit/(:num)'] = "quyen/editQuyen/$1";
$route['quyen/del/(:num)'] = "quyen/delQuyen/$1";
$route['quyen/(:any)'] = "quyen/index/$1";
$route['quyen/(:any)/(:num)'] = "quyen/index/$1/$2";
$route['showQuyenDataTable'] = "quyen/showQuyenDataTable";

/* $route['giaoban'] = "giaoban";
$route['diembao'] = "giaoban/index/3";
$route['nhanxet'] = "giaoban/index/2";
$route['detai'] = "giaoban/index/4";
$route['quydinh-quyche']="giaoban/index/5";
$route['quydinh']="giaoban/index/6";
$route['quyche']="giaoban/index/7";
$route['congvandi']="giaoban/index/8";
$route['baocao']="giaoban/index/10"; */
$route['sodo']="giaoban/sodo";
$route['404_override'] = '';


/* End of file routes.php */
/* Location: ./application/config/routes.php */